{echo:JS::import('form')}
<link type="text/css" rel="stylesheet" href="{url:#css/ucenter.css}" />
<div class="container clearfix">
	{widget:name=sub_navs action=ucsidebar sidebar=$sidebar act=$actionId}
	<div class="content clearfix uc-content">
     <h1 class="title"><span>在线留言：</span></h1>
     {if:isset($msg)}
     <div class="message_{$msg[0]} ie6png">{$msg[1]}</div>
     {elseif:isset($validator)}
     <div class="message_warning ie6png">{$validator['msg']}</div>
     {/if}
     <div >
        <form class="box" action="{url:/ucenter/ly_act}" method="post">
           <table class="form">
                  <tr><td >留言内容：</td><td><textarea name="question" minlen=5 maxlength="250" pattern="required" alt="内容至少包含5字!不超过250个字符" style="width: 600px;height: 90px;"></textarea><label>&nbsp;</label></td></tr>
                  <tr><td> </td><td><input type="submit" class="btn" value="提交"></td></tr>
              </table>
              {token:}
          </form>
      </div>
      <div id="voucher-n" class="mt10">
        <table class="simple">
            <tr><th >留言内容</th> <th width="140">时间</th></tr>
            <tbody class="page-content">
               {query:name=ly where= user_id eq $user[id] id=$refund page=1}
               <tr class="{odd-even}">
                  <td>{$item['question']|''|str}</a></td><td>{$item['ask_time']}</td>
              </tr>
              {if:$item['status']==1}
              <tr>
                <td colspan="2">Re：{$item['content']|''|text} [{$item['reply_time']}]</td>
              </tr>
              {/if}
              {/query}
          </tbody>
      </table>
      <div class="page-nav">{echo:$refund->pageBar()}</div>
  </div>
</div>
</div>
